<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Alert</title>
</head>
<body>
<div style="width: 100%;height: 100%;background-color:green ">

    <div style="width: 400px; height: 300px; margin: auto;background-color: #666666">
        提示：

    </div>
    <button onclick="al()">alert</button>
    <button onclick="con()">alert</button>
</div>
<script>
    function al() {
        var kouling = prompt("口令：","确定")
        console.log(kouling)
    }
    function con() {
        if(confirm("还有继续吗？")){
            alert("继续");
        }else{
            alert("再见");
        }
    }

</script>

</body>
</html>